CC = gcc
OBJECTS = main.o processor.o
CFLAGS = -g -I. -Wall -pedantic -ansi

all: gebeah

gebeah: $(OBJECTS)
	$(CC) $(OBJECTS) -o gebeah

main: main.c processor.h
	$(CC) $(CFLAGS) -c main.c

processor: processor.c globals.h
	$(CC) $(CFLAGS) -c processor.c

.PHONY: clean
clean:
	-rm *.o

.PHONY: cleanall
cleanall: clean
	-rm gebeah

